/**
 * Library entry point for the Lexical Playground App
 */

import React from 'react';
import ReactDOM from 'react-dom/client';
import PlaygroundApp from './App';
import './index.css';

// 提供一个便捷的挂载函数
function mountPlaygroundApp(container: HTMLElement) {
  const root = ReactDOM.createRoot(container);
  root.render(React.createElement(PlaygroundApp));
  return root;
}

// 导出组件供其他项目使用
export { PlaygroundApp, mountPlaygroundApp };

// 确保 PlaygroundApp 是默认导出
export default PlaygroundApp;
